<template>
  <div class="serviceRules">
    <div class="header">
      <van-nav-bar title="立即租赁" fixed left-text="返回" right-text left-arrow @click-left="onClickLeft"/>
    </div>
  <section>
    <div v-html="textList.content" class="serviceRules_content">

    </div>
  </section>
  </div>
</template>

<script>
    export default {
        name: "serviceRules",
      data() {
        return {
         textList:[],
         id:this.$route.query.id,
        }
      },
      mounted() {
         this.getimmediateLeaseData()

      },
      methods: {
        //返回
        onClickLeft() {
          this.$router.go(-1);
        },
        async getimmediateLeaseData() {
          let params = {
            agr_id:this.id
          };
          const res = await this.$axios.post(this.$api.textList, params);
          if (res.success) {
            this.textList=res.data
          } else {
            this.$toast(res.msg);
          }
        },
      }
    }
</script>

<style scoped>
  .serviceRules{background-color: #fff;width: 100%;height: 100vh;}
  section{padding-top: 0.6rem;}
  .serviceRules_content{width: 94%;margin: 0 auto;text-align: center!important;}
</style>
